package com.cpl.dao.springmvcsample;

import com.cpl.common.dao.CPLDaoSupport;
import com.cpl.dao.entity.Customer;

public class RegistartionDaoImpl extends CPLDaoSupport implements IRegistrationDao {

	public boolean addCustomer(String name,String age) {
		Customer cust;
		cust=new Customer();
		cust.setCustName(name);
		cust.setAge(age);
		
		System.out.print("Hibernate template"+"cust");
		
	    this.getHibernateTemplate().save(cust);
		
		
		System.out.print("Hibernate template"+"Success");
		return false;
	}

	

}
